using Application.AppService;
using Application.Profiles;
using Domain.Repository;

namespace HR
{
	public class Program
	{
		public static void Main(string[] args)
		{
			var builder = WebApplication.CreateBuilder(args);
			{
				
				builder.Services.AddTransient<IStudentAppService, StudentAppService>();

				builder.Services.AddAutoMapper(typeof(StudentProfile));
			}
			var app = builder.Build();

			app.MapGet("/", () => "Hello World!");

			app.Run();
		}
	}
}
